package day_803;

import java.awt.Button;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class guanliDome {
	public static void main(String[] args) {

		
			JFrame jFrame = new JFrame();

			JPanel jPanel = new JPanel();
			jFrame.add(jPanel);
			// 定义两个按钮
			JPanel anniu = new JPanel();
			JButton student = new JButton("学生登录");
			JButton teacher = new JButton("教师登录");
			
			student.addActionListener(new ActionListener() {
				
				@Override
				public void actionPerformed(ActionEvent e) {
					StudentDome studentDome=new StudentDome();
					studentDome.init();
					
				}
			});

			anniu.add(student);
			anniu.add(teacher);
			jPanel.add(anniu);
			
			//
			jFrame.setVisible(true);
			jFrame.setDefaultCloseOperation(jFrame.EXIT_ON_CLOSE);
			jFrame.setSize(300, 150);
		}

	
	}



	
